package singleInstance

/**
 * 双重校验同步锁单例
 */
class SingleInstanceThree private constructor() {
    companion object {
        val instance: SingleInstanceThree by
        lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) { SingleInstanceThree() }
    }

    fun print(str: String) {
        PrintUtil.print(str)
    }
}